/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.bridge.stub;

import java.util.Objects;
import ru.jSkyRoom.bridge.JSkyBridge;
import ru.jSkyRoom.interfaces.stub.StubMajor;
import skyproc.FormID;
import skyproc.MajorRecord;

/**
 *
 * @author Rakev
 */
public class StubMajorBridge extends JSkyBridge<FormID> implements StubMajor {

    private FormID id;

    public StubMajorBridge(FormID id) {
        super(id);
        this.id = id;
    }

    @Override
    public FormID getForm() {
        return id;
    }

    @Override
    public String getEDID() {
        throw new UnsupportedOperationException("Operation not supported.");
    }

    @Override
    public boolean getFlag(MajorRecord.MajorFlags flagType) {
        throw new UnsupportedOperationException("Operation not supported.");
    }

    @Override
    public void setFlag(MajorRecord.MajorFlags flagType) {
        throw new UnsupportedOperationException("Operation not supported.");
    }

    @Override
    public void unsetFlag(MajorRecord.MajorFlags flagType) {
        throw new UnsupportedOperationException("Operation not supported.");
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final StubMajorBridge other = (StubMajorBridge) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }
}
